package com.gccloud.design.feign;

import com.gccloud.feign.filter.FeignRequestFilter;
import com.gccloud.starter.common.vo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
 * @author guo.wang
 */
@FeignClient(name = "ofm-base", path = "/baseCenter", configuration = {FeignRequestFilter.class})
public interface BaseCenterClient {

    @GetMapping(value = "/stationConf/getStationUserConf", consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)
    R<List<Map<String, Object>>> getStationUserConf(@RequestParam("stationId") Long stationId);
}
